<template>
	<view>
		用户端首页
		<view>
			<tabbar :selected="selectedNum" :isAdmin="isAdmin"></tabbar>
		</view>
	</view>
</template>

<script>
	import tabbar from '../../../components/my_tabBar.vue'
	import { mapActions, mapGetters } from 'vuex';
	export default {
		components: {
			tabbar
		},
		data() {
			return {
				selectedNum: 0,//陪诊师首页，传递给底部导航栏为0
				isAdmin:false
			}
		},
		onLoad() {
			console.log("tabBar里面的onload");
		},
		onShow() {
			//把原生tabbar组件隐藏掉
			uni.hideTabBar({
				animation: false
			})
			this.isAdmin=uni.getStorageSync('role')==1?false:true;
			console.log("角色-------------》",uni.getStorageSync('role'));
		},
		methods: {

		   
		}
	}
</script>

<style>

</style>